home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9864 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  35 lines

  1. Path: news.rain.org!usenet
  2. From: "Guus Leeuw jr." <guusl@eiffel.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: ODBC development
  5. Date: Wed, 13 Mar 1996 16:48:07 -0800
  6. Organization: Interactive Software Engineering Inc. http://www.eiffel.com/
  7. Message-ID: <31476CC7.21C8F139@eiffel.com>
  8. References: <3145CB17.712A@danish.com>
  9. NNTP-Posting-Host: @outback.eiffel.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.8 i586)
  14.  
  15. Ihab Badr wrote:
  16. > I was writing an app which uses ODBC through the CDatabase object
  17. > supplied with the MFC in Visual C++.
  18. > For portability purposes we will probably rewrite the app in plain
  19. > vanilla C for portability purposes and move away from the MFC.
  20. > This means that I will have to do direct ODBC/API calls.
  21. > Has anyone got a sample piece of code and some advise to go with it ?
  22. > I am trying to get a feel for the amount of time and effort that will be
  23. > involved.
  24.  
  25. What you could do is read the MFC classes and try to map them into a C
  26. struct with separate golbal scoped functions.
  27.  
  28. I'm not too sure, but the way MFC 1.52 used to be written, it may a pretty
  29. long time to do the wrapping. But on the other hand, it is an excellent
  30. example. (Microsoft knows how to program for Windows, don't they)
  31.  
  32. Hope this helps,
  33.     Guus
  34.